#ifndef __MY_MULTITASKING__
#define __MY_MULTITASKING__

#include <memory.h>

#define MAX_TASKS 5

#define READY 0
#define BUSY  1

typedef struct {
    short pid;
    unsigned long stack;
    char state;
    struct kernelPagingStructure vAddr;
}Task;


unsigned int scheduler(unsigned int aktStackAddr);
void initMultitasking();
void initTask(unsigned int entry, struct kernelPagingStructure vAddr, unsigned int stack);
void exitProgramm();

#endif
